<h1>Listing users <%= link_to "Log out", admin_logout_path %></h1>

<div class="fbblueboxlite">
<table>
  <tr>
    <th style="width:200px;text-align:left;">User name</th>
    <th style="width:200px;text-align:left;">Privilege</th>
  </tr>

<% @users.each do |user| %>
  <tr>
    <td><%= user.name %></td>
    <td><%= user.privilege %></td>
    <td><%= link_to 'Show', user %></td>
    <td><%= link_to 'Edit', edit_user_path(user) %></td>
    <td><%= link_to 'Delete', user, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>
</div>
<br />

<div class="fbgreyboxbuttom">
<%= button_to 'New User', new_user_path %>
</div>